package com.yc.learn.majors.pojo;

public class Majors {
    private Integer majorsId;

    private String majorsName;

    public Majors() {
		super();
	}

	public Majors(String majorsName) {
		super();
		this.majorsName = majorsName;
	}

	public Majors(Integer majorsId, String majorsName) {
		super();
		this.majorsId = majorsId;
		this.majorsName = majorsName;
	}

	public Integer getMajorsId() {
        return majorsId;
    }

    public void setMajorsId(Integer majorsId) {
        this.majorsId = majorsId;
    }

    public String getMajorsName() {
        return majorsName;
    }

    public void setMajorsName(String majorsName) {
        this.majorsName = majorsName == null ? null : majorsName.trim();
    }

	@Override
	public String toString() {
		return "Majors [majorsId=" + majorsId + ", majorsName=" + majorsName + "]";
	}
    
}